package com.pojo;

import java.util.Arrays;
import java.util.List;

/**
 * 评论类
 */
public class Comment {
    private String id;//评论id
    private String blog_id;//文章id
    private String create_time;//评论时间
    private String comment_content;//评论内容
    private String user_id;//评论人id
    private String top_id;//顶层评论id
    private String parent_id;//父级评论人id
    private String avatar;//评论人头像
    List<Comment> child_list;//子级评论

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBlog_id() {
        return blog_id;
    }

    public void setBlog_id(String blog_id) {
        this.blog_id = blog_id;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getComment_content() {
        return comment_content;
    }

    public void setComment_content(String comment_content) {
        this.comment_content = comment_content;
    }

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public String getTop_id() {
        return top_id;
    }

    public void setTop_id(String top_id) {
        this.top_id = top_id;
    }

    public String getParent_id() {
        return parent_id;
    }

    public void setParent_id(String parent_id) {
        this.parent_id = parent_id;
    }

    public List<Comment> getChild_list() {
        return child_list;
    }

    public void setChild_list(List<Comment> child_list) {
        this.child_list = child_list;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "id='" + id + '\'' +
                ", blog_id='" + blog_id + '\'' +
                ", create_time='" + create_time + '\'' +
                ", comment_content='" + comment_content + '\'' +
                ", user_id='" + user_id + '\'' +
                ", top_id='" + top_id + '\'' +
                ", parent_id='" + parent_id + '\'' +
                ", avatar='" + avatar + '\'' +
                ", child_list=" + child_list +
                '}';
    }
}
